#pragma once

#include <cppwinks/network/http/Http.h>
#include <util/HttpUriRegistrar.h>
#include <util/MSingletonFactory.h>

class UserController
{
public:
    network::HttpReply userRegistered(const network::HttpRequest &req);
    network::HttpReply userLogin(const network::HttpRequest &req);
};

Singleton(UserController);
PostMapping("/user/registered", UserController, userRegistered);
PostMapping("/user/login", UserController, userLogin);
